package com.azt.novel.home.controller;



import com.azt.novel.common.resp.RestResp;
import com.azt.novel.home.resp.HomeFriendLinkRespDto;
import com.azt.novel.home.service.IHomeFriendLinkService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 友情链接 前端控制器
 * </p>
 *
 * @author azt
 * @since 2023-12-02
 */
@RestController
@RequestMapping("/api/front/home")
public class HomeFriendLinkController {

    @Resource
    private IHomeFriendLinkService iHomeFriendLinkService;

    /**
     * 首页友情链接列表查询接口
     * @return
     */
    @Operation(summary = "首页友情链接列表查询接口")
    @GetMapping("/friend_Link/list")
    public RestResp<List<HomeFriendLinkRespDto>> listHomeFriendLinks(){
        return iHomeFriendLinkService.listHomeFriendLinks();
    }
}
